<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/styles/regist.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script src="/js/plugins/js-cookie/js.cookie.min.js"></script>
    <script src="/js/vue/md5.js"></script>
    <script type="text/javascript" src="/js/vue/common.js"></script>
    <script type="text/javascript" src="/js/system/regist.js"></script>

</head>
<body>
<script>
    $(function () {
        //发送一个请求,通过接口的方式获取当前登录用户
        //注意:需要获取当前登录用户信息时,必须将之前登录成功返回的token值
        //之前的约定是请求时通过请求头将token传入接口服务器
        /*$.get("http://localhost:8080/users/getCurrentUser",{},function (data) {
            console.log(data);  //当前登录用户信息
        })*/
        /*ajaxGet("/users/getCurrentUser",{},function (data) {
            console.log(data);
        })*/
        //当前登录用户对象
        ajaxGet("/strategies/info",{},function (data) {
            console.log(data);
        })
        //SpringMVC默认的参数接收解析器
        ajaxGet("/strategies/info2",{phone:110},function (data) {
            console.log(data);
        })
    })
</script>



</body>
</html>